package com.yami.shop.mystery.common.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 活动扩展dto
 *
 * @author wxf
 * @date 2023/4/12 11:23
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ActivityProdDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    private Long id;

    @Schema(description = "活动ID")
    private long activityId;

    @Schema(description = "主图")
    private String img;

    @Schema(description = "商品主图")
    private String pic;

    @Schema(description = "商品名称")
    private String prodName;

    @Schema(description = "商品id")
    private Long prodId;

    @Schema(description = "商品skuId")
    private Long skuId;

    @Schema(description = "商品用于活动的库存")
    private Long prodOriginStocks;

    @Schema(description = "商品用于活动的剩余库存")
    private Long prodTotalStocks;

    @Schema(description = "商品库存")
    private Long totalStocks;

    @Schema(description = "活动商品限购数")
    private Integer purchaseNum;

    @Schema(description = "报名人数")
    private long applyNum;

    @Schema(description = "注水报名人数")
    private long waterApplyNum;

    @Schema(description = "优惠购价格(单位分)")
    private double preemptionPrice;

    @Schema(description = "商品原价")
    private double oriPrice;

    @Schema(description = "0:商品 1:盲盒")
    private Integer blindType;

    @Schema(description = "已补货数量")
    private Integer alreadyReplenishmentQuantity;

    private String linkAddr;
    private String qrcodeAddr;

}
